<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>贝格智能资讯系统</title>
    <link rel="stylesheet" type="text/css" href="css/css.css"/>

    <script src="//cdn.bootcss.com/angular.js/1.5.6/angular.min.js"></script>
    <script src="tm.pagination.js"></script>
    <script src="//cdn.bootcss.com/angular-ui-bootstrap/0.13.0/ui-bootstrap-tpls.js"></script>
    <script type="text/javascript">
        /*<![CDATA[*/
        var app = angular.module('app', ['tm.pagination', 'ui.bootstrap']);
        app.controller('MainController', function ($rootScope, $scope, $modal, $http) {
            $scope.activity_pop2 = function (id) {
                window.open("articles.html?sid="+id);
            }



            function getURL(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
                var r = window.location.search.substr(1).match(reg);
                if (r != null) return unescape(r[2]);
                return null;
            }

            _get();

            //获取数据
            //初始化载入数据
            function _get() {

                $http({
                    url: '/getArticle?id=' + getURL('id'),
                    method: 'GET'
                }).success(function (row) {
                    $scope.row = row;
                    if (row.labels != null && row.labels.length > 1) {
                      if(row.industry!=null&&row.industry.length>2){
                          row.industry = row.industry.slice(0,2);
                      }



                    }


                });
            }

        });
        /*]]>*/
    </script>
</head>
<body ng-app="app" ng-controller="MainController">
<div class="header">
    <h2>
        <div class="url"><a href="indexs.html">回到首页</a></div>
    </h2>
    <div class="top">
        <dt>{{row.tit}}</dt>
        <dd>
            <i>{{row.source}}</i>|<em>{{row.pubDt | date:'yyyy-MM-dd hh:mm:ss'}}</em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<em>
            <a href="{{row.url}}"  target="_blank"> 查看原文</a></em>
        </dd>

        <div ng- ng-repeat="label in row.labels">
            <div class="company">
                <a href="themes.html?tag={{label.name}}">{{label.name}}</a>
                <div class="lows" ng-if="label.value<0.0">{{label.value|number:2}}%</div>
                <div class="highs" ng-if="label.value>0.0">{{label.value|number:2}}%</div>
                <div class="zero" ng-if="label.value==0&&label.status!='not_open'">{{label.value}}%</div>
                <div class="zero" ng-if="label.status=='not_open'">- -%</div>
            </div>

        </div>
        <div ng-repeat=" industry in row.industry ">
            <div class="Label" ><a href="themes.html?tag={{industry}}">{{industry}}</a></div>

        </div>
    </div>
</div>
<div class="container">
    <div class="content">
        <dl>
            <dt><i>&#8220;</i>
                <div>{{row.summary}}
                    <b></b>
                </div>
            </dt>

            <dd>
                <span ng-repeat="content in row.contents">

                    <span ng-if="content.text.indexOf('<p>')>=0">

                        </br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <span ng-if="content.flag==false">{{content.text.substr(3)}}</span>
                        <span ng-if="content.flag==true"><a href="javascript:void(0)"
                                                            ng-click="activity_pop2(content.id)"> {{content.text.substr(3)}}</a></span>
                    </span>

                    <span ng-if="content.text.indexOf('<p>')<0">
                        <span ng-if="content.order ==1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp</span>
                        <span ng-if="content.flag==false">{{content.text}}</span>
                        <span ng-if="content.flag==true"><a href="javascript:void(0)"
                                                            ng-click="activity_pop2(content.id)">{{content.text}}</a></span>
                    </span>

                    <!--<a href="javascript:void(0)" ng-click="activity_pop2()">ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd.</a>-->
                   <!-- <b id="activity_pop2" style="display:none">
                        <i>
                            <a href="javascript:void(0)" ng-click="activity_close2()" id="2-1-1">×</a>
                        </i>
                        <div ng-repeat="article in articles">
                        <dl>
                            <dt> <a href="detail.html?id={{article.aid}}">{{article.tit}}</a></dt>
                            <dd>...
                <span ng-if="article.text.indexOf('<p>')>=0">{{article.text.substr(3)}}</span>
                <span ng-if="article.text.indexOf('<p>')<0">{{article.text}}</span>
                ...</dd>
                            </dd>
                         </dl>

                        </div>
                         <h3><a href="articles.html?sid={{sid}}">查看更多</a></h3>

                    </b>
                    <div ng-click="activity_close2()" id="2-1-3" class="c_mc" style="display:none"></div>
-->



                </span>


            </dd>
        </dl>
    </div>
    <div class="Belonged">
        <dl ng-repeat="topic in row.topics">
            <dt>所属话题：</dt>
            <dd>
                <div class="Label"><a href="topics.html?topic={{topic.id}}">{{topic.name}}</a></div>
            </dd>
        </dl>

    </div>


</div>

<div class="back_top"><a href="javascript:scroll(0,0)"><img src="images/top.png"/></a></div>
</body>
</html>
